package {
	
	// Imports
	
	import d2hooks.*;
	import d2actions.*;
	import d2api.*;
	import d2data.*;
	import flash.display.Sprite;
	import flash.utils.Dictionary;
	import ui.*;
	
	// Classe
	
	public class DamageCalc extends Sprite {
		
		// APIs
		
		public var sysApi  : SystemApi;
		public var uiApi   : UiApi;
		public var dataApi : DataApi;
		
		// Variables
		
		protected var gui : DamageCalcGUI;
		
		// Méthodes publiques
		
		public function main() : void {
			sysApi.addHook(d2hooks.GameFightStart, onGameFightStart);
		}
		
		// Evenements
		
		private function onGameFightStart() : void {
			uiApi.loadUi("damagecalc", "damagecalc");
		}
		
	}
	
}
